﻿using System;
using System.Collections.Generic;
using System.Text;
using Meqs.Entity;
using System.Collections;

namespace Meqs.Logic.Interface
{
    public interface IEducationUsersLogic : ICommonLogic<EducationUsers, int>
    {
        /// <summary>
        /// 插入用户，并插入相应的权限
        /// </summary>
        /// <param name="edu"></param>
        /// <param name="iRights"></param>
        /// <returns></returns>
        int InsertUser(EducationUsers edu, List<EduPrem> iRights);

        /// <summary>
        /// 修改用户及相应的用户权限
        /// </summary>
        /// <param name="edu"></param>
        /// <param name="iRights"></param>
        /// <returns></returns>
        int UpdateUser(EducationUsers edu, List<EduPrem> iRights);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="edu"></param>
        /// <returns></returns>
        int UpdateUser(EducationUsers edu);
        
        /// <summary>
        /// 删除List里面的所有用户
        /// </summary>
        /// <param name="iRIDs"></param>
        /// <returns></returns>
        int DeleteUser(List<int> iRIDs);


        /// <summary>
        /// 重新设置密码
        /// </summary>
        /// <param name="pwd"></param>
        /// <param name="RIDS"></param>
        /// <returns></returns>
        int ResetPwd(string pwd, List<int> RIDS);

        /// <summary>
        /// 根据条件来获取用户列表
        /// </summary>
        /// <param name="ht"></param>
        /// <returns></returns>
        IList<EducationUsers> GetByCondition(Hashtable ht);
        /// <summary>
        /// 登陆验证
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="pass">密码</param>
        /// <param name="Area">学区</param>
        /// <returns>登陆状态</returns>

        int CheckLogin(string userName, string pass,int Area);

    }
}
